// $Id: partitionizernaive.cpp 68 2004-11-12 10:44:03Z jonas $
#include "partitionizernaive.h"
#include <string.h>
#include <assert.h>

#include <iostream>
using namespace std;

/**
 * @todo Document this...!
 */
PartitionizerNaive::PartitionizerNaive()
{
	strcpy(m_names, "All nodes");
}

/**
 * Use this method to find out what partition a node belongs to.
 *
 * @param node A pointer to a node to find its partition.
 * @returns The partition index.
 */
int PartitionizerNaive::getPartition(Node *node)
{
	return 0;
}

/**
 * Returns the number of partitions.
 *
 * @returns The number of partitions available.
 */
int PartitionizerNaive::getPartitionCount()
{
	return 1;
}

/**
 * Find out a partitions name by sending its index as a parameter.
 *
 * @param index The index of the partition to get at name for.
 * @returns A string with a human readable partition name.
 */
char *PartitionizerNaive::getPartitionName(int index)
{
	assert(index==0);
	return m_names;
}
